<!-- formLabel组件 -->
<template>
	<es-view :cls="wrapCls" class="cu-form-group">
		<es-view class="title" style="`width: ${labelWidth}`">{{label}}</es-view>
		<slot></slot>
	</es-view>
</template>

<script>
	export default {
		props: {
			wrapCls: {
				type: String | Array,
				default() {
					return []
				}
			},
			label: {
				type: String,
				default() {
					return ''
				}
			},
			labelWidth: {
				type: String | Number,
				default() {
					return ''
				}
			}
		}
	}
</script>

<style>
</style>
